package com.naver.hdfs;

import java.io.IOException;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;

public class HDFSConfiguration {
	private Configuration conf;
	private String hdfsName;
	private String hdfsUrl;
	
	public HDFSConfiguration(Configuration conf, String hdfsName, String hdfsUrl) throws IOException {
		conf.set(hdfsName, hdfsUrl);
		this.conf = conf;
	}
	
	public FileSystem getFileSystem() throws IOException {
		return FileSystem.get(conf);
	}
}
